use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut ans = 0;
    let mut set = HashSet::new();
    for s in input_str.split(',') {
        if !set.contains(s) {
            ans += 1;
            set.insert(s);
        }
    }
    ans
}
